<script setup>
import Top from "@/views/common/Top.vue"
import Aside from "@/views/common/Aside.vue";

</script>

<template>
  <el-container class="layout-container">
    <!-- 右侧主区域 -->
    <el-container>
      <!-- 头部区域 -->
      <el-header>
        <Top/>
      </el-header>
      <el-container>
        <Aside/>
        <el-container>
          <!-- 中间区域 -->
          <el-main>
            <!--  <router-view>用于渲染嵌套路由对应的组件-->
            <router-view></router-view>
          </el-main>
        </el-container>
    </el-container>
      <!-- 底部区域 -->
      <el-footer>在线图书馆 ©2025 Created by 主=6对不队</el-footer>
    </el-container>
  </el-container>
</template>

<style lang="scss" scoped>
.layout-container {
  height: 98vh;

  .el-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    .el-dropdown__box {
      display: flex;
      align-items: center;

      .el-icon {
        color: #999;
        margin-left: 10px;
      }

      &:active,
      &:focus {
        outline: none;
      }
    }
  }

  .el-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #666;
  }
}
</style>